package com.ruoyi.service;

import com.ruoyi.domain.AdvMembers;

import java.util.List;

/**
 * Service接口
 *
 * @author ruoyi
 * @date 2024-05-13
 */
public interface IAdvMembersService
{
    /**
     * 查询
     *
     * @param advMembersId 主键
     * @return
     */
    public AdvMembers selectAdvMembersByAdvMembersId(Long advMembersId);

    // 二级列表数据
    public List<AdvMembers> selectAdvMembersListSecond(AdvMembers advMembers);
    public List<AdvMembers> selectAdvMembersListSecondForp(AdvMembers advMembers);
    /**
     * 查询列表
     *
     * @param advMembers
     * @return 集合
     */
    public List<AdvMembers> selectAdvMembersList(AdvMembers advMembers);

    /**
     * 查询列表(新，关联上级会员表)
     *
     * @param advMembers
     * @return 集合
     */
    public List<AdvMembers> selectAdvMembersListForp(AdvMembers advMembers);
    /**
     * 新增
     *
     * @param advMembers
     * @return 结果
     */
    public int insertAdvMembers(AdvMembers advMembers);

    /**
     * 修改
     *
     * @param advMembers
     * @return 结果
     */
    public int updateAdvMembers(AdvMembers advMembers);

    /**
     * 批量删除
     *
     * @param advMembersIds 需要删除的主键集合
     * @return 结果
     */
    public boolean deleteAdvMembersByAdvMembersIds(Long[] advMembersIds);

    /**
     * 删除信息
     *
     * @param advMembersId 主键
     * @return 结果
     */
    public int deleteAdvMembersByAdvMembersId(Long advMembersId);

    AdvMembers appLogin(AdvMembers advMembers);

    /**
     * 查询主播列表
     * @return
     */
    List<AdvMembers> selectAnchor();

    int resetRate(AdvMembers advMembers);

    boolean initAll();

    boolean initOne(AdvMembers advMembers);
}
